package asia.redact.bracket.exampleclasses;

public class ShipTo extends ExampleBase {

	String country;
	Name name;
	Street street1;
	Street street2;
	City city;
	StateOrTerritory stateOrTerritory;
	PostalCode postalCode;
	
	public ShipTo() {}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public Name getName() {
		return name;
	}

	public void setName(Name name) {
		this.name = name;
	}

	public Street getStreet1() {
		return street1;
	}

	public void setStreet1(Street street1) {
		this.street1 = street1;
	}

	public Street getStreet2() {
		return street2;
	}

	public void setStreet2(Street street2) {
		this.street2 = street2;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public StateOrTerritory getStateOrTerritory() {
		return stateOrTerritory;
	}

	public void setStateOrTerritory(StateOrTerritory stateOrTerritory) {
		this.stateOrTerritory = stateOrTerritory;
	}

	public PostalCode getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(PostalCode postalCode) {
		this.postalCode = postalCode;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((city == null) ? 0 : city.hashCode());
		result = prime * result + ((country == null) ? 0 : country.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result
				+ ((postalCode == null) ? 0 : postalCode.hashCode());
		result = prime
				* result
				+ ((stateOrTerritory == null) ? 0 : stateOrTerritory.hashCode());
		result = prime * result + ((street1 == null) ? 0 : street1.hashCode());
		result = prime * result + ((street2 == null) ? 0 : street2.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShipTo other = (ShipTo) obj;
		if (city == null) {
			if (other.city != null)
				return false;
		} else if (!city.equals(other.city))
			return false;
		if (country == null) {
			if (other.country != null)
				return false;
		} else if (!country.equals(other.country))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (postalCode == null) {
			if (other.postalCode != null)
				return false;
		} else if (!postalCode.equals(other.postalCode))
			return false;
		if (stateOrTerritory == null) {
			if (other.stateOrTerritory != null)
				return false;
		} else if (!stateOrTerritory.equals(other.stateOrTerritory))
			return false;
		if (street1 == null) {
			if (other.street1 != null)
				return false;
		} else if (!street1.equals(other.street1))
			return false;
		if (street2 == null) {
			if (other.street2 != null)
				return false;
		} else if (!street2.equals(other.street2))
			return false;
		return true;
	}

	
	
}
